package com.wenxixuanwu.fruitstore.controller;

import com.wenxixuanwu.fruitstore.entity.FruitOrigin;
import com.wenxixuanwu.fruitstore.mapper.FruitOriginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("fruitorigin")
public class FruitOriginController {

    @Autowired
    private FruitOriginMapper fruitOriginMapper;

    @RequestMapping("select")
    public List<FruitOrigin> selectByOrigin(){
        return fruitOriginMapper.selectByOrigin();
    }
}
